package com.mycompany.inventory.pojo;

public class ProductInventory {
	private String Id;
	private String productId;
	private String inventoryId;
	private int quantity;
	private String isdefault;

	public ProductInventory(String id, String productId, String inventoryId, int quantity, String isdefault) {
		this.Id = id;
		this.productId = productId;
		this.inventoryId = inventoryId;
		this.quantity = quantity;
		this.isdefault = isdefault;
	}

	public ProductInventory() {
		this.Id ="";
		this.productId = "";
		this.inventoryId = "";
		this.quantity = 0;
		this.isdefault ="0";
	}
	
	public void clear(){
		this.setId("");
		this.setProductId("");
		this.setInventoryId("");
		this.setQuantity(0);
		this.setIsdefault("0");
	}
	
	public void copyValue(ProductInventory obj){
		this.setId(obj.getId());
		this.setProductId(obj.getProductId());
		this.setInventoryId(obj.getInventoryId());
		this.setQuantity(obj.getQuantity());
		this.setIsdefault(obj.getIsdefault());
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the productId
	 */
	public String getProductId() {
		return productId;
	}

	/**
	 * @param productId the productId to set
	 */
	public void setProductId(String productId) {
		this.productId = productId;
	}

	/**
	 * @return the inventoryId
	 */
	public String getInventoryId() {
		return inventoryId;
	}

	/**
	 * @param inventoryId the inventoryId to set
	 */
	public void setInventoryId(String inventoryId) {
		this.inventoryId = inventoryId;
	}

	/**
	 * @return the quantity
	 */
	public int getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the isdefault
	 */
	public String getIsdefault() {
		return isdefault;
	}

	/**
	 * @param isdefault the isdefault to set
	 */
	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}
	
}
